﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using Entities;


namespace BusinessLogic
{
   
  public  class CardBL
    {
      CardDA carDa = new CardDA();
      CardEntites carE = new CardEntites();
      // THANH
      public bool kiemtra(CardEntites cardE)
      {
          if (
              carDa.GetAccountNo(cardE) == true
              )
          { return true; }
          else
          { return false; }
          
      }
      // THANH
      public bool kiemtraPIN(CardEntites cardE)
      {
          if (
              carDa.GetPIN(cardE) == true
              )
          { return true; }
          else
          { return false; }

      }
      // THANH
      public void Block(CardEntites cardE)
      {
          carDa.BlockCard(cardE);
      }
    }
}
